import java.util.Scanner;

public class Shoppingonline {
    public static void main(String[] args) {
        System.out.println("请输入网购金额：");
        Scanner input= new Scanner(System.in);
        double a= input.nextDouble();
        System.out.println("输入客户和发货点之间的距离（公里数）：");
        Scanner sc=new Scanner(System.in);
        double b= input.nextDouble();
        if (0<b||b<=10) {
            System.out.println("用户所需缴纳的总金额:"+(a+10));
        }else if(11<=b||b<=50){
            System.out.println("用户所需缴纳的总金额:"+(a+50));
        }else if(51<=b||b<=100){
            System.out.println("用户所需缴纳的总金额:"+(a+100));
        }else if(b>100){
            System.out.println("用户所需缴纳的总金额:"+(a+200));
        }
    }
}
